<template>
  <!-- 占用 -->
  <div>
    <el-dialog
      v-el-drag-dialog
      title="可免受租金明细"
      :append-to-body="true"
      :visible.sync="visible"
      width="600px"
    >
      <lb-table
        ref="lbTable"
        border
        highlight-current-row
        element-loading-text="加载中"
        :column="tableData.column"
        :data="tableData.data"
        :immediate-fetch="false"
        :pagination="false"
        custom-column
      />
    </el-dialog>
  </div>
</template>

  <script>
  export default {
    name: 'FreeRentDetail',
    data() {
      return {
        visible: false,
        csmId: '',
        temp: {},
        tableData: {
          column: [
            {
              prop: 'signYear',
              label: '年份'
            },
            {
              prop: 'goodsCount',
              label: '瓶数'
            }
          ],
          data: []
        }
      }
    },
    methods: {
      open(temp) {
        this.tableData.data = temp.dataList
        return new Promise(resolve => {
          this.resolve = resolve
          this.visible = true
          if (temp) {
            this.temp = Object.assign(this.temp, temp)
          }
        })
      }
    }
  }
  </script>

  <style lang='scss' scoped>

  </style>
